import csv
import json

import yaml


def read_csv(file_path):
    with open(file_path, newline='') as e:
        data = csv.DictReader(e)
        return [row for row in data]


def read_json(file_path):
    with open(file_path, 'r', encoding='utf-8') as e:
        return json.load(e)


def read_yaml(file_path):
    with open(file_path, 'r', encoding='utf-8') as e:
        return yaml.safe_load(e)
